<%--
  Created by IntelliJ IDEA.
  User: 凤与泥
  Date: 2021/5/5
  Time: 19:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>学生信息</title>
</head>
<body>
    <table border="1px" align="center">
        <tr>
            <td>id</td><td>姓名</td><td>年龄</td><td>出生日期</td>
        </tr>
        <c:forEach items="${stus}" var="stu">
            <tr>
                <td> ${stu.sid}</td><td>${stu.name}</td><td>${stu.age}</td><td>${stu.birthday}</td>
                <td><a href="/deleteServlet?sid=${stu.sid}">删除</a></td>
                <td><a href="/updateServlet?sid=${stu.sid}">修改</a></td>
            </tr>
        </c:forEach>
    </table>
    <a href="/add.jsp">添加学生</a>
</body>
</html>
